function typeCFn(classtype,checkValue,fromFlag){
        var listText="";
        var publicText=commonObj.CPublicAtt;
        //var rightText="";
        for(var m in publicText){
            if(publicText[m].title=="申请原因"||publicText[m].title=="备注说明"){
                listText+="<li> <div class='listLeftTitle'><span>*</span>"+publicText[m].title+"：</div><div class='listLeftText'><textarea  rows='3' cols='20' style='height:40px;box-sizing: border-box;resize:none;margin-bottom: -10px; '/></div></li>"
            }else if(Array.prototype.isPrototypeOf(publicText[m].text)){
                if(fromFlag!=undefined&&fromFlag!=""){
                    if(publicText[m].title=="环保类别"){
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        toLoadDingData3(m);
                        function toLoadDingData3(m){
                            MaterialReverseAjax("/MaterialAttService/getPartEnvProtectionCategory","",function(str){
                                renderForm(str.data,m,"Q/S0002+HF","","","Q/S0002+HF");
                            })
                        }
                    }else if(publicText[m].title=="检验标准"){
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        toLoadDingData2(m);
                        function toLoadDingData2(m){
                            MaterialReverseAjax("/MaterialAttService/getPartInspectionStandard","",function(str){
                                renderForm(str.data,m,"obj","","");
                            })
                        }
                    }else if(publicText[m].title=="料号生效产地"){
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        toLoadDingData4(m);
                        function toLoadDingData4(m){
                            MaterialReverseAjax("/MaterialAttService/getPartNumberEffectiveSite","",function(str){
                                renderForm(str.data,m,"obj","","");
                            })
                        }
                    }else{
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        renderForm(publicText[m].text,m);
                    }

                }else{
                    function renderForm2(str,m,selected){
                        layui.use('form', function(){
                            var form = layui.form;//高版本建议把括号去掉，有的低版本，需要加()
                            var option="";
                            var selt=selected!=undefined&&selected!=""?true:false;
                            for(var i=0;i<str.length;i++){
                                if(selt!=""&&selected==str[i]){
                                    option+='<option value="" selected>'+str[i]+'</option>'
                                }else{
                                    option+='<option value="" >'+str[i]+'</option>'
                                }
                            }
                            listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option>'+option+' </select> </div> </div></form></div></li>';
                            form.render("select");
                        });
                    }
                   // if()
                    if(publicText[m].title=="环保类别"){
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        toLoadDingData5(m);
                        function toLoadDingData5(m){
                            MaterialReverseAjax("/MaterialAttService/getPartEnvProtectionCategory","",function(str){
                                renderForm(str.data,m,"Q/S0002+HF","","","Q/S0002+HF");
                            })
                        }
                    }else if(publicText[m].title=="检验标准"){
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        toLoadDingData6(m);
                        function toLoadDingData6(m){
                            MaterialReverseAjax("/MaterialAttService/getPartInspectionStandard","",function(str){
                                renderForm(str.data,m,"obj","","");
                            })
                        }
                    }else if(publicText[m].title=="料号生效产地"){
                        listText+='<li><div class="listLeftTitle"><span>*</span>'+publicText[m].title+'：</div><div class="listLeftText"><form class="layui-form" action=""> <div class="layui-form-item proSelect"> <div class="layui-input-block editWidth"> <select lay-ignore style="display:block;" class="select'+m+'" name="" lay-verify=""> <option value=""></option> </select> </div> </div></form></div></li>';
                        toLoadDingData7(m);
                        function toLoadDingData7(m){
                            MaterialReverseAjax("/MaterialAttService/getPartNumberEffectiveSite","",function(str){
                                renderForm(str.data,m,"obj","","");
                            })
                        }
                    }else if(publicText[m].title=="源"){

                        renderForm2(publicText[m].text,m,"制造");
                    }else{
                        renderForm2(publicText[m].text,m,"");
                    }

                }

            }else if(publicText[m].text==""){
                if(publicText[m].title=="产品尺寸"){
                    listText+="<li> <div class='listLeftTitle'><span>*</span>"+publicText[m].title+"：</div><div class='listLeftText'><input  type='number' value=''/></div></li>"
                }else {
                    listText+="<li> <div class='listLeftTitle'><span>*</span>"+publicText[m].title+"：</div><div class='listLeftText'><input  type='text' value=''/></div></li>"
                }

            }else if(publicText[m].text!=""){
                listText+="<li> <div class='listLeftTitle'><span>*</span>"+publicText[m].title+"：</div><div class='listLeftText'><input readonly type='text' value='"+publicText[m].text+"'/></div></li>"
            }
        }
        /*listText+="<li> <div class='listLeftTitle'>创建CAD文档：</div><div class='listLeftText'><input  type='checkbox' value=''/></div></li>";
         listText+="<li> <div class='listLeftTitle'>检入后保持检出状态：</div><div class='listLeftText'><input  type='checkbox' value=''/></div></li>";*/
        $(".list").append(listText);
    if(fromFlag!=undefined&&fromFlag!=""){
    var oLiLen=$(".list li");
        var getLocalStorage=localStorage.getItem("commonClassTypeC")?localStorage.getItem("commonClassTypeC"):"";
        textArr=getLocalStorage.split(",")
    for(var i=0;i<oLiLen.length;i++){
        var indexArr=textArr[i].split("$#");
        var input=$(".list li").eq(i).find("input");
        var select=$(".list li").eq(i).find("select");
        var textarea=$(".list li").eq(i).find("textarea");

        if(input!=undefined&&input.length>0){
            $(".list li").eq(i).find("input").val(indexArr[0])
        }else if(select!=undefined&&select.length>0){
            $(".list li").eq(i).find("select option:selected").text(indexArr[0]);
            $(".list li").eq(i).find("select option:selected").val(indexArr[1])
        }else if(textarea!=undefined&&textarea.length>0){
            $(".list li").eq(i).find("textarea").val(indexArr[0])
        }else{

        }
    }
    }
        $(".list li:nth-child(7) span").css({
            display: "none"
        })
        $(".list li:nth-child(12) span").css({
            display: "none"
        })
        $(".list li:nth-child(11) span").css({
            display: "none"
        });
        //$(".rightList").append(rightText);

        var textArrLen=[];
        for(var x=0;x<$(".rightList li").length;x++){
            var textArea =$(".rightList li").eq(x).attr("class");
            if(textArea=="textAreaList"){
                textArrLen.push(x);
            }
        }

        if(textArrLen.length>0){
            for(var w=0;w<textArrLen.length;w++){
                $(".list li").eq(textArrLen[w]).css({
                    "height":"40px",
                    "line-height":"40px"
                })
            }
        }
    $(".submint").unbind().click(function(){
        var oLiLen=$(".list li ");
        var textArr=[];
        var mesg="";
        for(var i=0;i<oLiLen.length;i++){
            var input=$(".list li").eq(i).find("input");
            var select=$(".list li").eq(i).find("select");
            var textarea=$(".list li").eq(i).find("textarea");
            if(i==6&&$(input).val()==""){
                textArr.push("")
            }
            if($(".list li").eq(i).find("textarea").val()==""&&(i==10||i==11)){
                textArr.push("")
            }
                if (input != undefined && input.length>0 && $(".list li").eq(i).find("input").val() != "") {
                    textArr.push($(".list li").eq(i).find("input").val()+"$#"+$(".list li").eq(i).find("input").val())
                } else if (select != undefined && select.length && $(".list li").eq(i).find("select option:selected").text() != "") {
                    var vals=$(".list li").eq(i).find("select option:selected").val()!=undefined&&$(".list li").eq(i).find("select option:selected").val()!=""?$(".list li").eq(i).find("select option:selected").val():$(".list li").eq(i).find("select option:selected").text()
                    textArr.push($(".list li").eq(i).find("select option:selected").text()+"$#"+vals)
                    //console.log($(".list li").eq(i).find("select option:selected").val());
                } else if (textarea != undefined && textarea.length>0 && $(".list li").eq(i).find("textarea").val()!="") {
                        textArr.push($(".list li").eq(i).find("textarea").val()+"$#"+$(".list li").eq(i).find("textarea").val())

                }else {
                    if(i!=6&&i!=10&&i!=11){
                        switch (i){
                            case 1:
                                mesg+="源,";
                                break;
                            case 2:
                                mesg+="料号生效产地,";
                                break;
                            case 3:
                                mesg+="产品尺寸,";
                                break;
                            case 4:
                                mesg+="其他生效地及源类型（如只需在一地生效，请选“无”）,";
                                break;
                            case 5:
                                mesg+="线体,";
                                break;
                            case 7:
                                mesg+="检验标准,";
                                break;
                            case 8:
                                mesg+="供应商,";
                                break;
                            case 9:
                                mesg+="环保类别,";
                                break;

                        }
                    }

                }



        }
        if(mesg!=""){
            layerFn("请将"+mesg+"填写完整");
            textArr=[];
            return;
        }

        if(textArr.length>0){
            var getStatus=$(".bottomCheckBox div input");
            for(var m=0;m< getStatus.length>0;m++){
                if($(".bottomCheckBox div input").eq(m).prop('checked')){
                    textArr.push("是");
                }else{
                    textArr.push("否")
                }
            }
            var nameArr=[];
            var checkLen=$(".checkText input");
            for(var i=0;i<checkLen.length;i++){
                var checked=$(".checkText input").eq(i).prop('checked');
                if(checked){
                    nameArr.push($(".checkText input").eq(i).next().text())
                }
            }

            var checkVal=classtype;
            localStorage.setItem("commonClassTypeC",textArr);
            if(fromFlag!=undefined&&fromFlag!=""){
                window.location.href="about:blank";
                window.opener=null;
                window.open('','_self');
                window.close();
            }else{
                if(nameArr.length==0){
                    layerFn("请选择类型");
                    return;
                }
                if(checkVal!="POL"){
                    window.open("mateApply.html?nameArr="+nameArr+"&checkVal="+checkVal);
                    window.location.href="about:blank";
                    window.opener=null;
                    window.open('','_self');
                    window.close();
                }
            }


        }

    })
}